public class Cube extends ObjectVolume{
    double a;
    double b;
    double c;
    Cube(double a, double b, double c){
        this.a=a;
        this.b=b;
        this.c=c;
    }
    double getArea(){
        return (a*b+a*c+b*c)*2;
    }
    double getVolume() {
        return a*b*c;
    }
}